package com.xii.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = {"com.xii"})   //加载的配置类  主要是对位于swagger的加载 扫描com.xii下的包 全局
@EnableDiscoveryClient                    //开启nacos的服务注册
@EnableFeignClients                      //调用端添加feign注解
public class EduApplication {
    public static void main(String[] args){
        SpringApplication.run(EduApplication.class,args);
    }
}
